package com.ruoyi.common.constant;

import java.util.concurrent.TimeUnit;

/**
 * redis常量类
 * 
 * @author chenjian
 */
public class RedisConstants
{
    /**
     * 缓存手机端token信息
     */
    public static final String RECEPTION_TOKEN_CONSTANT = "reception:user:";

    /**
     * 设置手机端token失效时间
     */
    public static final Integer RECEPTION_TOKEN_TIMEOUT_CONSTANT = 7;

    /**
     * 设置手机端token失效时间单位
     */
    public static final TimeUnit RECEPTION_TOKEN_TIMEUNIT_CONSTANT = TimeUnit.DAYS;

    /**
     * 发送短信验证码前缀
     */
    public static final String SEND_VER_CODE = "send:ver:code:";

    /**
     * 修改手机号验证码前缀
     */
    public static final String SEND_UPDATE_PHONE_CODE = "send:update:phone:code:";

    /**
     * 今日做过的所有题目
     */
    public static final String TODAY_ALL_SUBJECT = "today:all:subject:";

    /**
     * 今日做过的所有题目个数
     */
    public static final String TODAY_ALL_SUBJECT_NUM = "today:all:subject:_num:";

    /**
     * 今日做错的所有题目
     */
    public static final String TODAY_WRONG_SUBJECT = "today:wrong:subject:";

    /**
     * 今日做错的所有题目个数
     */
    public static final String TODAY_WRONG_SUBJECT_NUM = "today:wrong:subject:num";

    /**
     * 今日做对的所有题目
     */
    public static final String TODAY_RIGHT_SUBJECT = "today:right:subject:";

    /**
     * 今日做对的所有题目个数
     */
    public static final String TODAY_RIGHT_SUBJECT_NUM = "today:right:subject:num";

    /**
     * 今日学习时长
     */
    public static final String TODAY_LEARN_TIME = "today:learn:time:";

    /**
     * 今天登录的家长
     */
    public static final String TODAY_LOGIN_USER_1 = "today:login:user:1";

    /**
     * 今天登录的学生
     */
    public static final String TODAY_LOGIN_USER_2 = "today:login:user:2";

    /**
     * 今日切出次数
     */
    public static final String TODAY_CUT_OUT_NUMBER = "today:cut:out:number:";

    /**
     * 今日切出时长
     */
    public static final String TODAY_CUT_OUT_TIME = "today:cut:out:time:";

    /**
     * 难度大于35的题目集合
     */
    public static final String DIFFICT_RATIO_GREATER_35 = "diffict:ratio:greater_35";

    /**
     * 题簇和例题关系前缀
     */
    public static final String CLUSTE_SUBJEC_RELATION = "cluste:subjec:relation:";

    /**
     * 定义用户已经做过的题簇题目
     */
    public static final String HAVE_COMP_CLUSTE_SUBJECT = "have:comp:cluste:subject:";



}
